package com.chat.utils;

import java.util.concurrent.ThreadLocalRandom;

public class UidUtil {

    public static String generateGroupUid() {
        StringBuilder uid = new StringBuilder();

        uid.append(ThreadLocalRandom.current().nextInt(1, 10));

        for (int i = 0; i < 10; i++) {
            uid.append(ThreadLocalRandom.current().nextInt(0, 10));
        }

        return uid.toString();
    }
}
